/*
 * @Filename: SystemConstant.java
 * @CreateTime: 2015-01-06 22:44:55
 * @Version: 1.0
 * @All rights (are) reserved.
 * @author miklechun
 */
package com.wonders.qxmanager.utils;

import java.nio.charset.Charset;

public class SystemConstant {

	/**
	 * 系统默认编码
	 */
	public static final String DEFAULT_CHARSET = "UTF-8";

	public static final String DATABASE_CHARSET = Charset.defaultCharset()
			.name();

	/**
	 * 系统换行符
	 */
	public static final String LINE_SEPARATOR = System
			.getProperty("line.separator");

	/**
	 * 字典常量
	 * 
	 */
	public static final class DIC {
		// 是
		public static final String YES = "是";
		// 否
		public static final String NO = "否";
	}

	/**
	 * 字典常量
	 * 
	 */
	public static final class TABLE_FIELD_VALUE {
		// 是
		public static final String YES = "1";
		// 否
		public static final String NO = "0";
	}

	/**
	 * controller中response对象给页面的时候需要绑定一些属性，公共的东西如下
	 * 
	 */
	public static final class PAGERESPONSEHELPER {
		// 列表前綴
		public static final String LIST_PREFIX = "LIST-";

	}

	// 删除标记（0：正常；1：删除；2：审核；）
	public static final String FIELD_DEL_FLAG = "ST_REMOVED";
	public static final String DEL_FLAG_NORMAL = "0";
	public static final String DEL_FLAG_DELETE = "1";
	public static final String DEL_FLAG_AUDIT = "2";
}
